package list

import C "gitee.com/ljfirst/algo-go-sdk/common/constant"

/**
 * @author ljfirst
 * @version V1.0
 * @date 2023/6/28 17:19
 * @author-Email ljfirst@mail.ustc.edu.cn
 * @blogURL https://blog.csdn.net/ljfirst
 * @description 最近最少使用算法
 * LFU，Least Frequently Used
 * LFU相对于LRU而言，多了一个频率统计
 * */
type LFUCache struct {

}

func NewLFUCache() *LFUCache {
	return &LFUCache{

	}
}

func (m *LFUCache) Set(key, value interface{})      {}
func (m *LFUCache) Get(key interface{}) interface{} { return nil }
func (m *LFUCache) Delete(key interface{})          {}
func (m *LFUCache) Length() int                     { return 0 }
func (m *LFUCache) Clear()                          {}
func (m *LFUCache) GetAttribute() *C.Attribute {
	return &C.Attribute{
		Tags: []string{C.Cache},
		Desc: &C.Desc{
			Name:   "LFUCache",
			NameCn: "最近最少使用算法",
		},
	}
}
